<?php
/**
 *      [迷你云] (C)2009-2012 南京恒为网络科技.
 *   软件仅供研究与学习使用，如需商用，请访问www.miniyun.cn获得授权
 * 
 */
?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?php echo Yii::app()->params["app"]["name"] ?>，爱分享 云生活</title>
<link rel="stylesheet" type="text/css" href="<?php echo(Yii::app()->params['app']['host'])?>/statics/web/setting/css/style.css?v=<?php echo(Yii::app()->params['app']['version'])?>" media="all" /> 
<script type="text/javascript">document.domain=window.location.host;</script>
<script src="<?php echo(Yii::app()->params['app']['host'])?>/statics/web/js/jquery_min.js?v=<?php echo(Yii::app()->params['app']['version'])?>" type="text/javascript"></script>
<script src="<?php echo(Yii::app()->params['app']['host'])?>/statics/web/js/util.js?v=<?php echo(Yii::app()->params['app']['version'])?>" type="text/javascript"></script>
<script src="<?php echo(Yii::app()->params['app']['host'])?>/statics/web/setting/js/tip.js?v=<?php echo(Yii::app()->params['app']['version'])?>" type="text/javascript"></script>
<script src="<?php echo(Yii::app()->params['app']['host'])?>/statics/web/setting/js/common_set_validate.js?v=<?php echo(Yii::app()->params['app']['version'])?>" type="text/javascript"></script>
</head>
<script language="javascript">
<?php if($modifySuccess){?>
        $(document).ready(function(){
       	 	$.successTip("修改资料成功！");
    	});
<?php }?> 
</script>
<style>
.errorSummary {
border: 2px solid #C00;
padding: 7px 7px 12px 7px;
margin: 0 0 20px 0;
background: #FEE;
font-size: 0.9em;
}
</style>
<body>
<div class="s-con privacy-setting dy-show back-input">
   <p class="border-bottom s-safe-title">
			<strong>修改个人资料</strong>
        </p>
    <?php $form=$this->beginWidget('CActiveForm', array()); ?>
        <?php echo $form->errorSummary($model); ?>
        <div class="input-label">
            <label for="" class="label-text">用户名：</label>
            <span class="txt"><?php echo($model->name)?></span>
        </div> 
        <div class="input-label">
            <label for="" class="label-text">昵称：</label>
            <?php echo $form->textField($model,'nick',array('size'=>20,'maxlength'=>45)); ?>
        </div>
        <div class="input-label">
            <label for="" class="label-text">电子邮件：</label>
            <?php echo $form->textField($model,'email',array('size'=>20,'maxlength'=>45)); ?>
        </div>
        <div class="input-label">
            <label for="" class="label-text">手机号码：</label>
            <?php echo $form->textField($model,'phone',array('size'=>13,'maxlength'=>13)); ?>
        </div>
        <div class="input-label">
            <label for="" class="label-text">真实姓名：</label>
            <?php echo $form->textField($model,'realName',array('size'=>20,'maxlength'=>45)); ?>
        </div>
        <div class="input-label">
            <label for="" class="label-text">QQ号码：</label>
            <?php echo $form->textField($model,'qq',array('size'=>20,'maxlength'=>45)); ?>
        </div>
         <div class="input-label">
            <label for="" class="label-text">网站：</label>
            <?php echo $form->textField($model,'website',array('size'=>45,'maxlength'=>45)); ?>
        </div>
        <div class="input-label">
            <label for="" class="label-text">自我简介：</label>
				<?php echo $form->textArea($model,'memo',array('size'=>45,'maxlength'=>45,'rows'=>5,'cols'=>42)); ?>
                    </div>
        <div class="input-label">
            <label for="" class="label-text">&nbsp;</label>
            <?php echo CHtml::submitButton('立即更新'); ?> 
        </div>
    <?php $this->endWidget(); ?>
</div>
<a href="javascript:;" class="btn-top" id="to_top"></a>
</body>
</html>
